//
//  WipCacheViewController.m
//  ExhibitionHall
//
//  Created by 王洋 on 2019/5/29.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "WipCacheViewController.h"

@interface WipCacheViewController ()

@property (nonatomic, strong) UIButton *wipBtn;

@end

@implementation WipCacheViewController

- (void)viewDidLoad {
    [super viewDidLoad];


    
    [self initView];
}

- (void)initView {
    self.view.backgroundColor = [UIColor lightGrayColor];

    [self.view addSubview:self.wipBtn];
    
    [self.wipBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.centerY.mas_equalTo(self.view);
        make.width.mas_equalTo(200);
        make.height.mas_equalTo(100);
    }];
    
}

- (void)wip {
    
    [WHToast showSuccessWithMessage:@"尚未开发" duration:TT_GLOBAL_DURATION_TIME finishHandler:^{
    }];
}

- (UIButton *)wipBtn {
    if (!_wipBtn) {
        _wipBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_wipBtn setBackgroundColor:[UIColor whiteColor]];
        [_wipBtn setTitle:@"清除缓存" forState:UIControlStateNormal];
        [_wipBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
        [_wipBtn addTarget:self action:@selector(wip) forControlEvents:UIControlEventTouchUpInside];
    }
    return _wipBtn;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
